﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity;
using System.Linq;
using System.Web;

namespace projetoFinal.Models
{
    [Table("plano")]
    public class Plano : DbContext
    {
        public int Id { get; set; }

        [RegularExpression(@"[a-zA-Z]{5,50}", ErrorMessage = "Somente letras.")]
        [Required(ErrorMessage = "Campo Obrigatorio")]
        public string Nome { get; set; }

        [RegularExpression(@"[0-9a-zA-Z]{4,10}", ErrorMessage = "Letrar e Números. Mininmo 4 caracteres.")]
        [Required(ErrorMessage = "Campo Obrigatorio")]
        public string Velocidade { get; set; }

        [RegularExpression(@"[a-zA-Z]{5,7}", ErrorMessage = "Somente letras.")]
        [Required(ErrorMessage = "Campo Obrigatorio")]
        public string Situacao { get; set; }
    }
}